package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

@Getter
public enum ClueSourceEnum {

    BUSINESS_CARD("1", "enum.clueSource.name.business_card", "businessCard"),


    EXHIBITION("2", "enum.clueSource.name.exhibition", "exhibition"),


    CUSTOMER_INTRODUCTION("3", "enum.clueSource.name.customer_introduction", "customerIntroduction"),

    WEBSITE("4", "enum.clueSource.name.website", "website"),

    EXTENSION("5", "enum.clueSource.name.extension", "extension"),
    ;


    private String code;
    private String name;
    private String attr;

    ClueSourceEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
